package agent

import "gateway/util"

type ServiceRegister struct {
	Service       string
	Ip            string
	Port          int
	HealthCheck   string
	Timeout       string
	Interval      string
	ConsulAddress string
}

func (ServiceRegister ServiceRegister) Register() {

	util.ServiceRegistger(ServiceRegister.ConsulAddress, ServiceRegister.Service, ServiceRegister.Ip, ServiceRegister.Port,
		ServiceRegister.Timeout, ServiceRegister.Interval)

}
